Documentation > CMS Template API Library > Params > SetFilterStatus(String[])
SetFilterStatus
Sets the FilterStatus property with the passed in strings. If the list was not empty, previously added items are cleared from the list.
public System.Void SetFilterStatus(String[])
Parameters
Name | Description | Type |
---|---|---|
statusList | Names of the workflow statuses to filter on | System.String[] |
Code Example
C#
Sample:
FilterParams fParams = new FilterParams(); fParams.SetFilterStatus("DRAFT", "STAGE", "LIVE"); List<asset> results = asset.Parent.GetFilterList(fParams);